"Cool tab with onclick step effect / Tabs changing on click"
Bootstrap 4.1.1 Snippet by Anil Kumar Chaudhary

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>
<div class="container">
<div class="row">
<div class="col-xs-12">
<!-- design process steps-->
<!-- Nav tabs -->
<ul class="nav nav-tabs process-model more-icon-preocess" role="tablist">
<li role="presentation" class="active"><a href="#discover" aria-controls="discover" role="tab" data-toggle="tab"><i class="fa fa-search" aria-hidden="true"></i>
<p>Discover</p>
</a></li>
<li role="presentation"><a href="#strategy" aria-controls="strategy" role="tab" data-toggle="tab"><i class="fa fa-send-o" aria-hidden="true"></i>
<p>Strategy</p>
</a></li>
<li role="presentation"><a href="#optimization" aria-controls="optimization" role="tab" data-toggle="tab"><i class="fa fa-qrcode" aria-hidden="true"></i>
<p>Optimization</p>
</a></li>
<li role="presentation"><a href="#content" aria-controls="content" role="tab" data-toggle="tab"><i class="fa fa-newspaper-o" aria-hidden="true"></i>
<p>Content</p>
</a></li>
<li role="presentation"><a href="#reporting" aria-controls="reporting" role="tab" data-toggle="tab"><i class="fa fa-clipboard" aria-hidden="true"></i>
<p>Reporting</p>
</a></li>
</ul>
<!-- end design process steps-->
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="discover">
<div class="design-process-content">
<h3 class="semi-bold">Discovery</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincid unt ut laoreet dolore magna aliquam erat volutpat</p>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.nav>li>a:focus, .nav>li>a:hover{background: transparent!important;}
.design-process-section .text-align-center {
line-height: 25px;
margin-bottom: 12px;
}
.design-process-content {
border: 1px solid #e9e9e9;
position: relative;
padding: 16px 34% 30px 30px;
}
.design-process-content img {
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 0;
max-height: 100%;
}
.design-process-content h3 {
margin-bottom: 16px;
}
.design-process-content p {
line-height: 26px;
margin-bottom: 12px;
}
.process-model {
list-style: none;
padding: 0;
position: relative;
max-width: 600px;
margin: 20px auto 26px;
border: none;
z-index: 0;
}
.process-model li::after {
background: #e5e5e5 none repeat scroll 0 0;
bottom: 0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
// script for tab steps
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var href = $(e.target).attr('href');
var $curr = $(".process-model a[href='" + href + "']").parent();
$('.process-model li').removeClass();
$curr.addClass("active");
$curr.prevAll().addClass("visited");
});
// end script for tab steps
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: